package entity.salary;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author beisheng
 * @since 2023-03-14
 */
@Getter
@Setter
@TableName("sa_absenteeism_add")
public class AbsenteeismAdd implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 旷工扣款序号
     */
    @TableId(value = "absenteeism_deductions_id", type = IdType.AUTO)
    private Integer absenteeismDeductionsId;

    /**
     * 旷工计薪规则序号
     */
    @TableField("holiday_rules_id")
    private Integer holidayRulesId;

    /**
     * 方案名称
     */
    @TableField("absenteeism_name")
    private String absenteeismName;

    /**
     * 创建时间
     */
    @TableField("creat_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date creatTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 删除标识
     */
    @TableField("delete_flage")
    private Integer deleteFlage;

    /**
     * 状态
     */
    @TableField("state")
    private Integer state;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 旷工计薪基数
     */
    @TableField("absenteeism_radix")
    private String absenteeismRadix;

    /**
     * 旷工计薪比例
     */
    @TableField("absenteeism_proportion")
    private Double absenteeismProportion;


}
